package vip.liux.backend.domain.models.shop.address;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name = "shop_user_address")
public class UserAddress extends vip.liux.domain.entities.Entity<Long> {

    @Column(name = "province", nullable = false, length = 64)
    private String province;

    @Column(name = "city", length = 64)
    private String city;

    @Column(name = "district", length = 64)
    private String district;

    @Column(name = "address", nullable = false, length = 64)
    private String address;

    @Column(name = "user_id", nullable = false)
    private Long userId;

    @Column(name = "`default`", nullable = false)
    private boolean defaultAddress;

    @Column(name = "name", nullable = false, length = 64)
    private String name;

    @Column(name = "phone", nullable = false, length = 64)
    private String phone;
}